import 'dart:math';

import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter/src/widgets/preferred_size.dart';
import 'package:flutter_elf/_base/base_widget.dart';
import 'package:flutter_elf/config/component_index.dart';
import 'package:flutter_elf/page/huwei_weather_page.dart';
import 'package:flutter_elf/page/sun_animation_widget.dart';

class FirstPage extends BaseWidget{
  @override
  BaseWidgetState<BaseWidget> getState() {
    // TODO: implement getState
    return FirstPageState();
  }
}


class FirstPageState extends BaseWidgetState<FirstPage>{
  @override
  Widget buildView(BuildContext context) {
    // TODO: implement buildView
    return GestureDetector(
      onTap: (){
        NavigatorUtils.navigatorRouter(context, SunAnimationWidget(1/3));
      },
      child: Center(
        child: Text('跳转'),
      ),
    );
  }

  @override
  PreferredSizeWidget initAppbar() {
    // TODO: implement initAppbar
    return null;
  }
}